/*
package com.lza.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.ParameterBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.schema.ModelRef;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Parameter;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import sun.plugin.liveconnect.SecurityContextHelper;

import java.util.ArrayList;
import java.util.List;

*/
/**
 *
 * swagger配置类
 *//*

@Configuration
@EnableSwagger2
public class Swagger2 {
    */
/**
     *
     *控制接口暴露给swagger来展示
     * @return
     *//*


    public Docket createRestApi(){
        ParameterBuilder tokenPar=new ParameterBuilder();
        List<Parameter> parameters = new ArrayList<>();
        tokenPar.name("Authorization")
                .description("令牌")
                .modelRef(new ModelRef("string"))
                .parameterType("header")
                .required(false)
                .build();
        parameters.add(tokenPar.build());

        return  new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(apiInfo())//创建api的基本信息
                .select()//选择哪些接口去暴露
                .apis(RequestHandlerSelectors.basePackage("com.lza.phone.controller"))//扫描的包
                .paths(PathSelectors.any())
                .build()
                .globalOperationParameters(parameters);

    }

    */
/**
     *
     * 创建api的基本信息(信息会在文档里面显示)
     * 访问地址:http://localhost:8083/swagger-ui.html
     *//*

    private ApiInfo apiInfo(){
        return new ApiInfoBuilder()
                .title("SpringBoot1.0接口")
                .description("SpringBoot1.0 API接口文档")
                .version("v1.0")
                .build();
    }
}
*/
